chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
    if (request.action === 'reload') {
        chrome.tabs.reload({bypassCache: true });
        return true;
    }
});

chrome.runtime.onInstalled.addListener(({reason}) => {
    if (reason === 'install') {
        chrome.tabs.create({url: "install.html"});
    }
});


